home *** CD-ROM | disk | FTP | other *** search
- /*
- * debug values for MALLOC_DEBUG and _malloc_debug
- *
- * Copyright 1992 by Gray Watson and the Antaire Corporation
- *
- * This file is part of the malloc-debug package.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library (see COPYING-LIB); if not, write to the
- * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * The author of the program may be contacted at gray.watson@antaire.com
- *
- * $Id: dbg_values.h,v 1.3 1993/04/05 22:30:05 gray Exp $
- */
-
- #ifndef __DBG_VALUES_H__
- #define __DBG_VALUES_H__
-
- /*
- * special debug codes which detail what debug features are enabled
- */
-
- /* logging */
- #define DEBUG_LOG_STATS BIT_FLAG(0) /* generally log statistics */
- #define DEBUG_LOG_NONFREE BIT_FLAG(1) /* report non-freed pointers */
- #define DEBUG_LOG_PERROR BIT_FLAG(2) /* log perror problems */
- #define DEBUG_LOG_TRANS BIT_FLAG(3) /* log memory transactions */
- #define DEBUG_LOG_BAD_POINTER BIT_FLAG(4) /* log pointer info on error */
- #define DEBUG_LOG_ADMIN BIT_FLAG(5) /* log background admin info */
- #define DEBUG_LOG_BLOCKS BIT_FLAG(6) /* log blocks when heap-map */
- #define DEBUG_LOG_UNKNOWN BIT_FLAG(7) /* report unknown non-freed */
-
- /* checking */
- #define DEBUG_CHECK_FENCE BIT_FLAG(10) /* check fence-post errors */
- #define DEBUG_CHECK_HEAP BIT_FLAG(11) /* examine heap adm structs */
- #define DEBUG_CHECK_LISTS BIT_FLAG(12) /* check the free lists */
- #define DEBUG_CHECK_DBLOCK BIT_FLAG(13) /* closely examine dblocks */
- #define DEBUG_CHECK_DB_FENCE BIT_FLAG(14) /* check fences for dblocks */
- #define DEBUG_CHECK_FREE BIT_FLAG(15) /* check free blocks of 0's */
- #define DEBUG_CHECK_FUNCS BIT_FLAG(16) /* check functions */
-
- /* misc */
- #define DEBUG_REALLOC_COPY BIT_FLAG(20) /* copy all reallocations */
- #define DEBUG_FREE_BLANK BIT_FLAG(21) /* write over free'd memory */
- #define DEBUG_ERROR_ABORT BIT_FLAG(22) /* abort on error else exit */
- #define DEBUG_ALLOC_BLANK BIT_FLAG(23) /* write over to-be-alloced */
- #define DEBUG_HEAP_CHECK_MAP BIT_FLAG(24) /* heap-map on heap-check */
- #define DEBUG_PRINT_PERROR BIT_FLAG(25) /* print errors to STDERR */
-
- /*
- * special flags that after being set or not/set and process start-up, cannot
- * be reset.
- */
- #define DEBUG_NOT_CHANGEABLE (DEBUG_CHECK_FREE)
-
- #endif /* ! __DBG_VALUES_H__ */
-